var mongoose = require("mongoose");
var db = require('./db');
var companyModel = db.model("company",new mongoose.Schema({
    "company": {
        type:String,
        required:true
    },
    "code": {
        type:String,
        required:true
    },
    "businessNumber": {
        type:String,
        required:true
    },
    "represent": {
        type:String,
        required:true
    },
    "phone": {
        type:String,
        required:true
    },
    "email": {
        type:String,
        required:true
    },
    "registerTime":{
        type:String,
        required:true
    }
}),"company");

module.exports = companyModel;